﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace ddcCajamarca.Web.Account
{
    public partial class frmUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void CreateUserWizard1_ActiveStepChanged(object sender, EventArgs e)
        {
            if (CreateUserWizard1.ActiveStep.Title.Equals("Completar") || CreateUserWizard1.ActiveStep.Title.Equals("Complete"))
            {
                Roles.AddUserToRole(CreateUserWizard1.UserName, "Voluntario");
                Response.Redirect("~/Default.aspx");
            }
        }
    }
}